Only in a property or procedure declaration statement 只能在屬性或過程聲明語句中使用
You write procedures by first writing a procedure declaration 通過先編寫過程聲明來編寫過程。
The following is an example of a simple procedure declaration 下面是一個簡單過程聲明的示例。
When you typefor example , the first line of a procedure declaration , 當(dāng)鍵入一個過程聲明的第一行(如
Parameters are declared in the procedure declaration , not in individual lines of code 參數(shù)是在過程聲明中聲明的,而不是在單個代碼行中聲明的。
Parameters are declared in the procedure declaration in the parentheses that follow the procedure name 在過程聲明中,參數(shù)在緊跟著過程名的括號中聲明。
Usually , you cannot call a procedure with more arguments than the procedure declaration specifies 通常,調(diào)用的過程所包含的參數(shù)不能超出過程聲明指定的數(shù)目。
Provides links to topics covering changes to parameter passing , procedure calling sequences , and procedure declarations 提供到包含對參數(shù)傳遞、過程調(diào)用順序和過程聲明更改的主題的鏈接。
In the procedure declarations , the set of arguments for each procedure must be different or an error will occur 過程。在過程聲明中,每個過程都必須具有一組不同的參數(shù),否則將會出現(xiàn)錯誤。
When entering code for form or control event procedures , first add the procedure declaration in visual basic 2005 and then upgrade only the body of the procedure . the 當(dāng)為窗體或控件事件過程輸入代碼時,首先在visual basic 2005中添加過程聲明,然后僅升級該過程的程序體。